﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;
using Database;

namespace Communication
{
    [DataContract]
    public class ClientRequest 
    {
        [DataMember]
        public User user;
        [DataMember]
        public int forumId;
        [DataMember]
        public int subId;
        [DataMember]
        public int threadId;
        [DataMember]
        public int postId;
        [DataMember]
        public string title;
        [DataMember]
        public string content;

        public ClientRequest(User user, int id)
        {
            // TODO: Complete member initialization
            this.user = user;
            this.forumId = id;
        }

        public ClientRequest(User me, string title, string content)
        {
            // TODO: Complete member initialization
            this.user = me;
            this.title = title;
            this.content = content;
        }

        public ClientRequest(User me, string title)
        {
            // TODO: Complete member initialization
            this.user = me;
            this.title = title;
        }


        public ClientRequest(User me, string title, int id)
        {
            // TODO: Complete member initialization
            this.forumId = id;
            this.user = me;
            this.title = title;
        }


        public ClientRequest(User me, string title, string content, int id)
        {
            // TODO: Complete member initialization
            this.user = me;
            this.title = title;
            this.content = content;
            this.forumId = id;
        }

        public ClientRequest(string title, string content)
        {
            // TODO: Complete member initialization
            this.title = title;
            this.content = content;
        }

        public void setSubForumId(int id)
        {
            this.subId = id;
        }

        public void setThreadId(int id)
        {
            this.threadId = id;
        }

        public void setPostId(int id)
        {
            this.postId = id;
        }


        public string getTitle()
        {
            return this.title;
        }

        public string getContent()
        {
            return this.content;
        }

        public int getForumId()
        {
            return this.forumId;
        }

        public int getSubForumId()
        {
            return this.subId;
        }

        public int getThreadId()
        {
            return this.threadId;
        }

        public int getPostId()
        {
            return this.postId;
        }

        public User getUser()
        {
            return this.user;
        }


    }
}
